package com.naiterui.ehp.bs.esign.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author guoyongxiang
 * @date 2019/11/25 20:24
 * @since 1.0.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class SignFileParamVO implements Serializable {

    private static final long serialVersionUID = -989118771218342177L;

    /**
     * 处方ID
     */
    private String urId;

    /**
     * 医网信医师唯一标识
     */
    private String openId;

    /**
     * 预签名唯一标识：透传字段
     */
    private String unionId;

    private String patientName;

    private String patientAge;

    private String patientSex;

    private String patientCard;

    private String patientCardType;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date recipeTime;

    /**
     * 签署源文件路径
     */
    private String pdfPath;

    /**
     * 签名文件生成地址
     */
    private String outputPath;

    /**
     * 上传签署文件串
     */
    private String pdfBase64;

    private String moveType;

    private String keyword;

    private Float x;

    private Float y;

    private Integer locationPage;

    /**
     * 签名文件类型
     */
    private String signFileType;
    /**
     * 是否添加时间戳
     */
    @Builder.Default
    private Boolean addSignTime = true;
}
